<?php
/**
 * Modul version
 *
 * Example:
 * --------
 * Setup           1.0.0-dev1
 * 1st Testversion 1.0.0-rc1
 * First Release   1.0.0
 * 1st Bugfix      1.0.1
 * New features    1.1.0
 * 
 * @author Mario Schillermann <info@rockit-flash.com>
 * @encoding UTF-8 äöüßÖÄÜ
 * @copyright © 2011 Mario Schillermann (info@rockit-flash.com)
 * @package Form
 * @subpackage Model
 * @link $HeadURL$
 * @version SVN: $Id$
 * @phpVersion >= 5.3
 * @todo
 */

final class Form_Model_Version
{
    /**
     * Compare the specified version string $version
     * with the current Form_Model_Version::VERSION of the module
     *
     * @param string $version A version string (e.g. "1.0.0")
     * 
     * @return boolean -1 if the $version is older
     *                  0 if they are the same
     *                 +1 if $version is newer
     */
    const VERSION = '1.3.0';

    public static function compareVersion($version)
    {
        return version_compare($version, self::VERSION);
    }
}